import request from "@/utils/request";

// 查询人员信息基础列表
export function listBizPersonInfo(query) {
  return request({
    url: "/biz/bizPersonInfo/list",
    method: "get",
    params: query,
  });
}

// 查询人员信息基础详细
export function getBizPersonInfo(id) {
  return request({
    url: "/biz/bizPersonInfo/" + id,
    method: "get",
  });
}

// 新增人员信息基础
export function addBizPersonInfo(data) {
  return request({
    url: "/biz/bizPersonInfo",
    method: "post",
    data: data,
  });
}

// 修改人员信息基础
export function updateBizPersonInfo(data) {
  return request({
    url: "/biz/bizPersonInfo",
    method: "put",
    data: data,
  });
}

// 删除人员信息基础
export function delBizPersonInfo(id) {
  return request({
    url: "/biz/bizPersonInfo/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizPersonInfo/findMaxSort",
    method: "get",
  });
}
// 导出人员信息基础
export function exportBizPersonInfo(query) {
  return request({
    url: "/biz/bizPersonInfo/export",
    method: "get",
    params: query,
  });
}
